<h1><%= @categories.category_name -%></h1>
<ul>
<% @categories.books.each do |c| %>
<li><%= link_to c.title, :action => "show", :id => c.id -%></li>
<% end %>
</ul>